package com.cqu.hhx.driver.entity;

import java.sql.Date;
import java.sql.Timestamp;

/**
 * @author DJ
 * @create 2020-05-23 18:21
 */
public class Driver {
    //司机Id
    private Long driverId;
    //账户
    private String account;
    //密码
    private String passWord;
    //姓名
    private String driverName;
    //年龄
    private Integer age;
    //身份证
    private String idCard;
    //驾照编号
    private String license;
    //电话号
    private String phone;
    //司机状态
    private Integer status;
    //已完成订单数
    private Integer finishedOrders;
    //注册时间
    private Timestamp createTime;
    //账户余额
    private Float money;
    //评分
    private Float evaluation;

    public Driver() {
    }

    public Driver(String passWord, String driverName, String idCard, String license, String phone) {
        this.passWord = passWord;
        this.driverName = driverName;
        this.idCard = idCard;
        this.license = license;
        this.phone = phone;
    }

    public Driver(Long driverId, String account, String passWord, String driverName,
                  Integer age, String idCard, String license, String phone, Integer status,
                  Integer finishedOrders, Timestamp createTime, Float money, Float evaluation) {
        this.driverId = driverId;
        this.account = account;
        this.passWord = passWord;
        this.driverName = driverName;
        this.age = age;
        this.idCard = idCard;
        this.license = license;
        this.phone = phone;
        this.status = status;
        this.finishedOrders = finishedOrders;
        this.createTime = createTime;
        this.money = money;
        this.evaluation = evaluation;
    }

    public Long getDriverId() {
        return driverId;
    }

    public void setDriverId(Long driverId) {
        this.driverId = driverId;
    }

    public String getAccount() {
        return account;
    }

    public void setAccount(String account) {
        this.account = account;
    }

    public String getPassWord() {
        return passWord;
    }

    public void setPassWord(String passWord) {
        this.passWord = passWord;
    }

    public String getDriverName() {
        return driverName;
    }

    public void setDriverName(String driverName) {
        this.driverName = driverName;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public String getIdCard() {
        return idCard;
    }

    public void setIdCard(String idCard) {
        this.idCard = idCard;
    }

    public String getLicense() {
        return license;
    }

    public void setLicense(String license) {
        this.license = license;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Integer getFinishedOrders() {
        return finishedOrders;
    }

    public void setFinishedOrders(Integer finishedOrders) {
        this.finishedOrders = finishedOrders;
    }

    public Timestamp getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Timestamp createTime) {
        this.createTime = createTime;
    }

    public Float getMoney() {
        return money;
    }

    public void setMoney(Float money) {
        this.money = money;
    }

    public Float getEvaluation() {
        return evaluation;
    }

    public void setEvaluation(Float evaluation) {
        this.evaluation = evaluation;
    }

    @Override
    public String toString() {
        return "Driver{" +
                "driverId=" + driverId +
                ", account='" + account + '\'' +
                ", passWord='" + passWord + '\'' +
                ", driverName='" + driverName + '\'' +
                ", age=" + age +
                ", idCard='" + idCard + '\'' +
                ", license='" + license + '\'' +
                ", phone='" + phone + '\'' +
                ", status=" + status +
                ", finishedOrders=" + finishedOrders +
                ", createTime=" + createTime +
                ", money=" + money +
                ", evaluation=" + evaluation +
                '}';
    }
}
